/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../styles/variables.less';

.search-container {
  border: 1px solid #eaecf5;
  border-radius: 12px;
  background: #fdfdfd;
  padding: 6px 20px;

  .global-search-select {
    .ant-select-arrow {
      color: @text-color;
    }
  }

  .nav-search-button {
    border: 0.5px solid @nlp-border-color !important;
    border-radius: @border-rad-xs;
    padding: 0 4px;
    transition: none;
    background-color: @primary-button-background !important;

    svg {
      width: 14px;
      height: 14px;
      fill: transparent;
    }

    &.active {
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none !important;

      svg {
        width: 24px;
        height: 24px;
        fill: none;
      }
    }
  }
}

.global-search-overlay {
  left: 0 !important;

  .ant-popover-inner-content {
    padding: 16px 20px;
  }
}
